//1,引入模块
let http = require("http");
//CommonJS 里面引入模块的两种方式
//比较es6 import 导入
//import axios from "axios"
//import {HashRouter} from "react-router-dom"
let utils = require("./utils");
let add = require("./utils").add;
let server = http.createServer(function(request,response){
    //输出 hello
    response.write(utils.sayHello());
    //输出 3+7 结果
    let num = add(3,7);
    console.log(num)
    response.write(""+num+"");
    response.end();
})
//监听端口的意思 端口号3000
server.listen(3000);
